import {BASE_URL} from "../common/const";
import VConsole from 'vconsole';
//挂载全局百度统计表格

import * as echarts from 'echarts'

import qs from "qs";

export default {
    install(Vue, options) {
        
        // 图片地址
        Vue.prototype.PIC_URL = process.env.VUE_APP_PIC_URL;
        // 项目目录 生产环境需要带上
        Vue.prototype.MODE_URL = process.env.NODE_ENV == 'production' ? process.env.VUE_APP_PROJECT : '';
        
        // 本地默认开启vconsole
        let url =  window.document.domain;
        if(url.includes("test") || url.includes("localhost") || url.includes("192.168")){
            const vConsole = new VConsole();
            Vue.use(vConsole);
        }
        
        //百度统计图标
        Vue.prototype.$echarts = echarts;
        
    }
}

     
        

    
